class Http{
  static request(url){
    return new Promise((resolve,reject)=>{
      wx.request({
        url,
        dataType: "json",
        header: {"content-type":"application"},
        method: "GET",
        responseType: "text",
        success: (result) => {resolve(result)},
        fail: (res) => {reject(res)},
      })
    })
  }
}
module.exports = Http;